{__NOLAYOUT__}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>注册-都市家建材网,中国建材行业综合资讯门户网站 - 会员管理中心</title>
<script type="text/javascript" src="http://user.dushijia.com/Public/statics/js/jquery.min.js"></script>
<script type="text/javascript" src="http://user.dushijia.com/Public/statics/js/member_common.js"></script>
<script type="text/javascript" src="http://user.dushijia.com/Public/js/plugin/formvalidator.js" charset="UTF-8"></script>
<script type="text/javascript" src="http://user.dushijia.com/Public/js/plugin/formvalidatorregex.js?aaac" charset="UTF-8"></script>
<link rel="stylesheet" type="text/css" href="http://user.dushijia.com/Public/statics/default/a.css">
<link href="http://user.dushijia.com/Public/statics/css/reset.css" rel="stylesheet" type="text/css" />
<script language="JavaScript">
<!--
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});

	$("#username").formValidator({onshow:"请输入用户名",onfocus:"用户名应该为6-20位之间",oncorrect:"恭喜您，用户名可注册"}).inputValidator({min:6,max:20,onerror:"用户名应该为6-20位之间"}).regexValidator({regexp:"ps_username",datatype:"enum",onerror:"用户名格式错误"}).ajaxValidator({
	    type : "get",
		url : "http://user.dushijia.com/member/checkname",
		data :"",
		datatype : "json",
		async:'false',
		success : function(data){
            if( data.status) {
                return true;
			} else {
                return false;
			}
		},
		buttons: $("#dosubmit"),
		onerror : "用户已存在或禁止注册.",
		onwait : "请稍候..."
	});

	$("#password").formValidator({onshow:"请输入密码",onfocus:"密码应该为8-20位字符"}).inputValidator({min:8,max:20,onerror:"密码应该为8-20位字符"});

	$("#pwdconfirm").formValidator({onshow:"请输入确认密码",onfocus:"两次密码不同。",oncorrect:"确认密码密码正确"}).compareValidator({desid:"password",operateor:"=",onerror:"两次密码不同。"});

	$("#email").formValidator({onshow:"请输入邮箱",onfocus:"邮箱格式错误",oncorrect:"此电子邮件允许注册"}).inputValidator({min:2,max:32,onerror:"邮箱应该为2-32位之间"}).regexValidator({regexp:"email",datatype:"enum",onerror:"邮箱格式错误"}).ajaxValidator({
	    type : "get",
		url : "http://user.dushijia.com/member/checkemail",
		data :"",
		datatype : "json",
		async:'false',
		success : function(data){	
           if( data.status) {
                return true;
			} else {
                return false;
			}
		},
		buttons: $("#dosubmit"),
		onerror : "此电子邮件被占用或格式不对",
		onwait : "请稍候..."
	});
	$("#nickname").formValidator({onshow:"请输入公司名称",onfocus:"公司名称为6-30中文字之间",oncorrect:"此公司名称可以注册"}).inputValidator({min:6,max:30,onerror:"公司名称6-30个中文字之间"}).regexValidator({regexp:"chinese",datatype:"enum",onerror:"公司名称应该为中文字"}).ajaxValidator({
			type : "get",
			url : "http://user.dushijia.com/member/checkcompany",
			data :"",
			datatype : "json",
			async:'false',
			success : function(data){
				if( data.status) {
					return true;
				} else {
					return false;
				}
			},
			buttons: $("#dosubmit"),
			onerror : "公司被注册,联系QQ:37067087",
			onwait : "请稍候..."
		});
	
	
	$("#mobilephone").formValidator({onshow:"请输入手机号码",onfocus:"密码应该为11位",oncorrect:"手机号码正确"}).inputValidator({min:11,max:11,onerror:"手机号码必须是11位数字"}).regexValidator({regexp:"mobile",datatype:"enum",onerror:"你输入的手机号码格式不正确"});
	
	$("#verify").formValidator({onshow:"请输入验证码",onfocus:"验证码应该为2个中文字"}).inputValidator({min:4,max:4,onerror:"验证码应该为2个中文字"});


	$(":checkbox[name='protocol']").formValidator({tipid:"protocoltip",onshow:"请阅读协议",onfocus:"请阅读协议"}).inputValidator({min:1,onerror:"请阅读协议"});

	
	});



function memberRegister(){
	
	
	if(!$("#protocol").attr("checked")) {
		$('#protocoltip').removeAttr("class");
		$('#protocoltip').addClass("onError");
		$('#protocoltip').html('请勾选阅读协议选目.');
		return false;
	}
	$.post('http://user.dushijia.com/member/register',{username:$("#username").val(),password:$("#password").val(),email:$("#email").val(),nickname:$("#nickname").val(),mobilephone:$("#mobilephone").val(),verify:$("#verify").val(),protocol:$("#protocol").val()},function(data){
		if(data.status){
			redirect('http://user.dushijia.com/')
		}else{
			//$('#'+data.data).focus();
			$('#'+data.data+'Tip').removeAttr("class");
			$('#'+data.data+'Tip').addClass("onError");
			$('#'+data.data+'Tip').html(data.info);
			
		}
	});

}

//-->
</script>
<link href="http://user.dushijia.com/Public/statics/css/jiancai_table_form.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.submit,.pass-logo a,.form-login .input label,.item span,#content h2 span em{display:inline-block;display:-moz-inline-stack;zoom:1;*display:inline;}
.blue,.blue a{color:#377abe},.submit input{cursor:hand;}
.log{line-height:24px; height:24px;float:right; font-size:12px}
.log span{color:#ced9e7}
.log a{color:#049;text-decoration: none;}
.log a:hover{text-decoration: underline;}
#header{ height:94px; background:url(http://user.dushijia.com/Public/statics/images/member/h.png) repeat-x}
#header .logo{ padding-right:100px;float:left;background:url(http://user.dushijia.com/Public/statics/images/member/login-logo.png) no-repeat right 2px;}
#header .content{width:920px; margin:auto; height:60px;padding:10px 0 0 0}
#content{width:920px; margin:auto; padding:20px 0 0 0; overflow:auto}
.form-login{width:420px; padding-left:40px}
#content h2{font-size:25px;color:#494949;border-bottom: 1px dashed #CCC;padding-bottom:3px; margin-bottom:10px}
#content h2 span{font-size:12px; font-weight:normal}
#content h2 span em{background: url(http://user.dushijia.com/Public/statics/images/member/order.png) no-repeat 0px -16px; width:15px; height:15px; line-height:15px; text-align:center; margin-right:5px; color:#FFF}
#content h2 span.on{ color:#333; font-weight:700}
#content h2 span.on em{background-position: 0px 0px;}

.form-login .input{ padding:7px 0; overflow:hidden; clear:both}
.form-login .input label{ width:84px;font-size:14px; color:#8c8686; text-align:right; float:left}
.form-login .input .form{ width:560px; float:left}
.take,.reg{padding:0 0 0 84px}
.take .submit{margin-top:10px}
.form-login .hr{background: url(http://user.dushijia.com/Public/statics/images/member/line.png) no-repeat left center; height:50px;}
.form-login .hr hr{ display:none}

.form-reg{padding:10px 0 0 14px; width:700px; border-right:1px solid #ccc}
.form-reg .input label{ width:120px}
.form-reg .input label.type{ width:auto; color:#000; padding-right:10px}
.form-reg .reg{padding:10px 0 0 120px}
.form-reg .reg .submit{ margin-bottom:5px}

.submit{padding-left:3px}
.submit,.submit input{ background: url(http://user.dushijia.com/Public/statics/images/member/but.png) no-repeat; height:29px;width:auto;_width:0;overflow:visible !ie}
.submit input{background-position: right top; border:none; padding:0 10px 0 7px; font-size:14px}
.reg{ color:#666; line-height:24px}
.reg .submit{background-position: left -35px; height:35px}
.reg .submit input{background-position: right -35px; font-weight:700; color:#fff; height:35px}
.reg-auto{ padding:10px 0 0 20px}
.reg-auto p{ margin-bottom:10px; color:#666;}
.col-1{position:relative; float:right; border:1px solid #c4d5df; zoom:1;background: url(http://user.dushijia.com/Public/statics/images/member/member_title.png) repeat-x; width:310px; margin: auto; height:304px}
.col-1 span.o1,
	.col-1 span.o2,
	.col-1 span.o3,
	.col-1 span.o4{position:absolute;width:3px;height:3px;background: url(http://user.dushijia.com/Public/statics/images/fillet.png) no-repeat}
	.col-1 span.o1{background-position: left -6px; top:-1px; left:-1px}
	.col-1 span.o2{background-position: right -6px; top:-1px; right:-1px}
	.col-1 span.o3{background-position: left bottom; bottom:-1px; left:-1px}
	.col-1 span.o4{background-position: right bottom; bottom:-1px; right:-1px;}
.col-1 .title{color:#386ea8; padding:5px 10px 3px}
.col-1 div.content{padding:0px 10px 10px}
.col-1 div.content h5{background: url(http://user.dushijia.com/Public/statics/images/member/ext-title.png) no-repeat 2px 10px; height:34px}
.col-1 div.content h5 strong{ visibility: hidden}
.pass-logo{ margin:auto; width:261px; padding-top:15px}
.pass-logo a img{ border:1px solid #ddd}
.pass-logo a{border:3px solid #fff}
.pass-logo a.logo,
.pass-logo a:hover{border:3px solid #e8f1f1;}
.pass-logo p{border-top: 1px solid #e1e4e8; padding-top:15px}
.item{padding:10px 0; vertical-align:middle; margin-bottom:10px}
.item span{ color:#8c8686}

#footer{color:#666; line-height:24px;width:920px; margin:auto; text-align:center; padding:12px 0; margin-top:52px; border-top:1px solid #e5e5e5}
#footer a{color:#666;}

.point{border:1px solid #ffbf7a; background:#fffced; margin-bottom:10px; margin-right:100px;margin-left:50px;position:relative}
.point .content{padding:8px 10px;}
.point .content .title{color:#ff8400}
.point .content p{color:#777; text-indent:20px}
.point span.o1,
	.point span.o2,
	.point span.o3,
	.point span.o4{position:absolute;width:3px;height:3px;background: url(http://user.dushijia.com/Public/statics/images/fillet.png) no-repeat; overflow:hidden}
	.point span.o1{background-position: left top; top:-1px; left:-1px}
	.point span.o2{background-position: right top; top:-1px; right:-1px}
	.point span.o3{background-position: left -3px; bottom:-1px; left:-1px}
	.point span.o4{background-position: right -3px; bottom:-1px; right:-1px;}
.submit button.hqyz{margin:0px; padding:0px; border:none; cursor:pointer; }
.submit button.hqyz{
    background-position: 100% 0%;
    border: medium none;
    font-size: 12px;
    padding: 0 10px 0 7px;
}
.submit button.hqyz{
    background: url("http://user.dushijia.com/Public/statics/images/member/but.png") no-repeat 100% 0px;
    height: 29px;
    width: auto;
	
}

#mobile_div input{*margin-bottom:12px;*_padding:0px 0px 6px 0px}
</style>
</head>
<body>
<div id="header">
	<div class="content">
	<div class="logo"><img src="http://user.dushijia.com/Public/statics/images/v9/logo.gif"/></div>
    <span class="log"></span>
    </div>
</div>

<div id="content">
	<h2>会员注册&nbsp;&nbsp;&nbsp;&nbsp;<span class="on"><em>1</em>填写信息</span>
		</h2>

<form method="post" action="" id="myform">
	<div class="col-left form-login form-reg">
    	<div class="input"><label>用户名：</label><input type="text" id="username" name="username" size="36" class="input-text"></div>
        <div class="input"><label>密码：</label><input type="password" id="password" name="password" size="36" class="input-text"></div>
        <div class="input"><label>确认密码：</label><input type="password" name="pwdconfirm" id="pwdconfirm" size="36" class="input-text"></div>
        <div class="input"><label>电子邮箱：</label><input type="text" id="email" name="email" size="36" class="input-text"></div>
		<div class="input"><label>公司名称：</label><input type="text" id="nickname" name="nickname" size="36" class="input-text"></div>
		<div class="input"><label>手机号码：</label><input type="text" id="mobilephone" name="mobilephone" size="36" class="input-text"></div>
        <div class="input"><label>验证码：</label><input type="text" id="verify" name="verify" size="10" class="input-text"><img id='code_img' onclick='this.src=this.src+"&"+Math.random()' src='http://user.dushijia.com/public/verify/'></div>
		<div class="input"><label>阅读协议：</label><input type="checkbox" name="protocol" id="protocol" value="1" checked="checked"  >&nbsp;&nbsp;<a href="javascript:void(0);" class="blue" onclick="check_protocol();return false;" >点击阅读注册协议</a></div>
        	<div class="reg">
                <div class="submit"><input type="button" name="dosubmit" id="dosubmit"  onclick="memberRegister();" value="同意注册协议，提交注册"></div>
            </div>
        </div>
</form>

    <div class="col-auto reg-auto">
    	<p class="f14">
        已经有了账号？<br />请直接登录        </p>
        <div class="submit"><input type="submit" name="dosubmit" value="登录" onclick="redirect('http://user.dushijia.com/member/login')"></div>
    </div>
</div>

 
	  <div class="footer-zbj" id="footer">
	 <p class="attention-us clearfix"><span>关注我们：</span>
	  
	  <a class="sina" title="关注都市家建材网(新浪微博)" target="_blank" href="http://weibo.com/dushijia"></a>
	  <a class="qq" title="关注都市家建材网(腾讯微博)" target="_blank" href="http://t.qq.com/dushijia-com"></a>
	  <!--<a class="tt" title="关注都市家建材网(搜狐微博)" target="_blank" href="#"></a>-->
	  </p>
	  
	  <p><a target="_blank" href="http://www.dushijia.com/html/about/aboutus/">关于我们</a>| <a target="_blank" href="http://www.dushijia.com/html/about/contactus/">联系方式</a>| <a target="_blank" href="http://www.dushijia.com/index.php?m=link&c=index&a=register&siteid=1">友情链接</a> | <a target="_blank" href="http://www.dushijia.com/sitemap.html">网站地图</a>| <a href="http://www.dushijia.com/index.php?m=content&c=index&a=lists&catid=4" target="_blank">版权声明</a>| <a href="http://www.dushijia.com/html/about/hr/" target="_blank">加入我们</a></p><p class="mt10 mb5 gray6">服务热线：18601113150 &nbsp;&nbsp; 联系QQ:37067087 &nbsp;&nbsp;地址：北京市朝阳区安立路56号</p><p>Copyright 2008-2013 Dushijia.com 版权所有 <a href="http://www.miibeian.gov.cn/" target="_blank">京ICP备12003682号-2</a></p>
	  <!--<div style="display: none;"><script src="http://s15.cnzz.com/stat.php?id=2665384&web_id=2665384" language="JavaScript"></script></div>-->
	  </div>
	</body>
	</html>